using UnityEngine;
using System.Collections;

public class Instantiate : MonoBehaviour {

    public Transform SpaceCraft;

    void OnNetworkLoadedLevel()
    {
        // Instantiating SpaceCraft when Network is loaded
        Network.Instantiate(SpaceCraft, new Vector3(2f,2f,2f), transform.rotation, 0);
    }

    void OnPlayerDisconnected(NetworkPlayer player)
    {
        Network.RemoveRPCs(player, 0);
        Network.DestroyPlayerObjects(player);
    }

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
